<div class="nav-tabs-custom">
	<ul class="nav nav-tabs">
		<li class="active"><a href="#fa-icons">{$info.name} - 文章列表</a></li>
        <li class=""><a href="{:Url('index')}">推荐位列表</a></li>
		<li class=""><a href="{:Url('add')}">添加推荐位</a></li>
	</ul>
	
    <div class="box-body">
        <form class="js-ajax-form" action="{:Url('newsOrders')}" method="post">
            <div class="table-actions pl10">
                <button class="btn btn-primary btn-ss btn-flat js-ajax-submit" type="submit">排序</button>
            </div>
            <table class="table table-hover table-bordered" id="menus-table">
                <thead>
                    <tr>
                        <th width="80">排序</th>
                        <th width="50">ID</th>
                        <th>名称</th>
                        <th width="100">类型</th>
                        <th width="80">状态</th>
                        <th width="140">添加时间</th>
                        <th width="60">操作</th>
                    </tr>
                </thead>
                <tbody>
                    {volist name="list" id="vo"}
                    <?php $news = json_decode($vo['data'], true); ?>
                    <tr>
                        <td>
                            <input name='sort[{$vo.id}]' type='number' min='0' value='{$vo.sort}' class='form-control input-sm input-ss display_de width50' />
                        </td>
                        <td>{$vo.id}</td>
                        <td>
                            <?php if ($vo['type'] == 1 && isset($news['title'])): ?>
                            {$news['title']}
                            <?php else: ?>
                            {$news['name']}
                            <?php endif; ?>
                        </td>
                        <td>{$types[$vo['type']]}</td>
                        <td>{$status_arr[$vo['status']]}</td>
                        <td>{$vo.create_time}</td>
                        <td>
                            <div class="visible-md visible-lg hidden-sm hidden-xs">
                                <a href="{:Url('remove',array('id'=>$vo['id']))}" class="btn btn-xs btn-warning btn-flat js-ajax-del" data-toggle="tooltip" data-placement="top" title="移除当前文章"><i class="fa fa-minus-circle"></i></a>
                            </div>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
            </table>
        </form>
        {$list->render()}
    </div>
</div>